package com.lucksoft.map.sdk.baidu.param;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 百度地图路线规划参数类
 * 
 * @author Qwen
 * @date 2025/10/9
 * @version 1.0.0
 */
@Schema(description = "百度地图路线规划参数")
public class MapSdkBaiduParam {
    
    @Schema(description = "起点坐标(纬度,经度)", example = "39.915,116.404")
    private String origin;
    
    @Schema(description = "终点坐标(纬度,经度)", example = "39.975,116.334")
    private String destination;
    
    @Schema(description = "路线类型", example = "driving", allowableValues = {"driving", "walking", "riding"})
    private String routeType;
    
    @Schema(description = "路线偏好", example = "0")
    private String tactics;
    
    @Schema(description = "百度地图API Key", example = "your_baidu_api_key")
    private String ak;
    
    public MapSdkBaiduParam() {
    }
    
    public MapSdkBaiduParam(String origin, String destination, String routeType, String tactics, String ak) {
        this.origin = origin;
        this.destination = destination;
        this.routeType = routeType;
        this.tactics = tactics;
        this.ak = ak;
    }
    
    public String getOrigin() {
        return origin;
    }
    
    public void setOrigin(String origin) {
        this.origin = origin;
    }
    
    public String getDestination() {
        return destination;
    }
    
    public void setDestination(String destination) {
        this.destination = destination;
    }
    
    public String getRouteType() {
        return routeType;
    }
    
    public void setRouteType(String routeType) {
        this.routeType = routeType;
    }
    
    public String getTactics() {
        return tactics;
    }
    
    public void setTactics(String tactics) {
        this.tactics = tactics;
    }
    
    public String getAk() {
        return ak;
    }
    
    public void setAk(String ak) {
        this.ak = ak;
    }
    
    @Override
    public String toString() {
        return "MapSdkBaiduParam{" +
                "origin='" + origin + '\'' +
                ", destination='" + destination + '\'' +
                ", routeType='" + routeType + '\'' +
                ", tactics='" + tactics + '\'' +
                ", ak='" + (ak != null ? "***" : null) + '\'' +
                '}';
    }
}